package com.ming;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableAuthorizationServer;
import org.springframework.web.client.RestTemplate;

/**
 * @Author:何元才
 * @Desc:
 * @data:2021-03-30 23:27
 */
@SpringBootApplication
@EnableEurekaClient
@EnableAuthorizationServer // 开启授权服务器
@MapperScan("com.ming.mapper")
public class AuthsServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(AuthsServerApplication.class, args);
    }


    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
}
